package com.ruoyi.manager.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manager.mapper.ArvinBookmarkCategoryMapper;
import com.ruoyi.manager.domain.ArvinBookmarkCategory;
import com.ruoyi.manager.service.IArvinBookmarkCategoryService;

/**
 * 收藏分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-11
 */
@Service
public class ArvinBookmarkCategoryServiceImpl implements IArvinBookmarkCategoryService 
{
    @Autowired
    private ArvinBookmarkCategoryMapper arvinBookmarkCategoryMapper;

    /**
     * 查询收藏分类
     * 
     * @param id 收藏分类ID
     * @return 收藏分类
     */
    @Override
    public ArvinBookmarkCategory selectArvinBookmarkCategoryById(Long id)
    {
        return arvinBookmarkCategoryMapper.selectArvinBookmarkCategoryById(id);
    }

    /**
     * 查询收藏分类列表
     * 
     * @param arvinBookmarkCategory 收藏分类
     * @return 收藏分类
     */
    @Override
    public List<ArvinBookmarkCategory> selectArvinBookmarkCategoryList(ArvinBookmarkCategory arvinBookmarkCategory)
    {
        return arvinBookmarkCategoryMapper.selectArvinBookmarkCategoryList(arvinBookmarkCategory);
    }

    /**
     * 新增收藏分类
     * 
     * @param arvinBookmarkCategory 收藏分类
     * @return 结果
     */
    @Override
    public int insertArvinBookmarkCategory(ArvinBookmarkCategory arvinBookmarkCategory)
    {
        return arvinBookmarkCategoryMapper.insertArvinBookmarkCategory(arvinBookmarkCategory);
    }

    /**
     * 修改收藏分类
     * 
     * @param arvinBookmarkCategory 收藏分类
     * @return 结果
     */
    @Override
    public int updateArvinBookmarkCategory(ArvinBookmarkCategory arvinBookmarkCategory)
    {
        return arvinBookmarkCategoryMapper.updateArvinBookmarkCategory(arvinBookmarkCategory);
    }

    /**
     * 批量删除收藏分类
     * 
     * @param ids 需要删除的收藏分类ID
     * @return 结果
     */
    @Override
    public int deleteArvinBookmarkCategoryByIds(Long[] ids)
    {
        return arvinBookmarkCategoryMapper.deleteArvinBookmarkCategoryByIds(ids);
    }

    /**
     * 删除收藏分类信息
     * 
     * @param id 收藏分类ID
     * @return 结果
     */
    @Override
    public int deleteArvinBookmarkCategoryById(Long id)
    {
        return arvinBookmarkCategoryMapper.deleteArvinBookmarkCategoryById(id);
    }
} 